import { defineStore } from "pinia";
import { ref, computed } from "vue";
export const useXcartStore = defineStore("xcart", () => {
  const title = ref("xcart");
  const count = ref(99);
  const g1 = computed(() => {
    return `hello ${title.value}`;
  });
  const add = () => {
    return count.value + 20;
  };

  const say = () => console.log("hahaha");
  return { title, count, g1, add, say };
});
